import http from "@/utils/fetch";

// 短信使用列表
export function msmUseList(params) {
  return http.post("/Admin/Data/msmUseList", params);
}
// 获取短信发送场景
export function getSmsTemplate() {
  return http.get("/Admin/Data/getSmsTemplate");
}
// 风控使用列表
export function riskUseList(params) {
  return http.post("/Admin/Data/riskUseList", params);
}
// 获取会员列表
export function getUseList(params) {
  return http.post("/Admin/Data/userLists", params);
}
// 拉出黑名单
export function delBlack(params) {
  return http.post("/Admin/Data/delBlack", params,true);
}
// 联通卡会员列表
export function unicomLists(params) {
  return http.post("/Admin/Data/unicomLists", params,true);
}
// 京东物流轨迹
export function unicomExpressTrace(orderId) {
  return http.post("/Admin/Data/unicomExpressTrace", {orderId});
}
// 抖音线索
export function getDouyinClue(params) {
  return http.get("/Admin/Complaint/getDouyinClue",params,true);
}

// 添加抖音线索
export function setDouyinClue(params) {
  return http.post("/Admin/Complaint/setDouyinClue",params,true);
}
// 抖音备注状态
export function getDouyinRemarkStatus() {
  return http.get("/Admin/Complaint/getDouyinRemarkStatus");
}
// 抖音备注状态
export function setDouyinClueRemark(params) {
  return http.post("/Admin/Complaint/setDouyinClueRemark",params,true);
}
// 备注列表
export function getDouyinClueRemark(clue_id) {
  return http.get("/Admin/Complaint/getDouyinClueRemark", {clue_id});
}
//客服获取抖音线索
export function getUserDouyinClue() {
  return http.get("/Admin/Complaint/getUserDouyinClue")
}
//  客服抖音线索列表
export function getDouyinClues(params) {
  return http.get("/Admin/Complaint/getDouyinClues",params,true)
}
//客服获取取消订单号码
export function getOrderCancleMobile(params) {
  return http.get("/Admin/Complaint/getOrderCancleMobile",params,true)
}
// 订单备注状态
export function setOrderClueRemark(params) {
  return http.post("/Admin/Complaint/setOrderClueRemark",params,true);
}
// 订单备注列表
export function getOrderClueRemark(order_id) {
  return http.get("/Admin/Complaint/getOrderClueRemark", {order_id});
}
//客服获取订单线索
export function getUserOrderClue() {
  return http.get("/Admin/Complaint/getUserOrderClue")
}

//  客服获取未下单会员号码
export function getUserMobile(params) {
  return http.get("/Admin/Complaint/getMemberMobile",params,true)
}

//  银行卡绑卡列表
export function cardLists(params) {
  return http.post("/Admin/Data/cardLists",params,true)
}
//  宝付银行卡绑卡设置默认
export function setCardDefault(params) {
  return http.post("/Admin/Data/setCardDefault",params,true)
}
//  获取风控分析列表
export function getAntRiskList(params) {
  return http.get("/Admin/Data/getAntRiskList",params,true)
}
// 新增用户风控
export function setAntRiskList(params) {
  return http.post("/Admin/Data/setAntRiskList",params,true)
}


// 添加
export function addUsers(params) {
  return http.post("/Admin/Complaint/addUsers",params,true)
}

// 编辑
export function editUsers(params) {
  return http.post("/Admin/Complaint/editUsers",params,true)
}

// 删除
export function delUsers(id) {
  return http.post("/Admin/Complaint/delUsers",{id})
}

// 列表
export function userLists(params) {
  return http.post("/Admin/Complaint/userLists",params,true)
}